package com.petplanet.shop.view.widgets

import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.petplanet.common.ui.widgets.AppHeaderBar
import com.petplanet.common.ui.widgets.CustomDivider

@Composable
internal fun ShopHeaderBar(
    heightDp: Dp = 48.dp,
    backgroundColor: Color = Color.White,
    leftContent: @Composable () -> Unit,
    centerContent: @Composable () -> Unit,
    rightContent: @Composable () -> Unit,
    leftWeight: Float = 1f,
    centerWeight: Float = 1f,
    rightWeight: Float = 1f,
    dividerVisible: Boolean = false,
    bottomView: @Composable () -> Unit = {}
){
    Column(
        modifier = Modifier
            .fillMaxWidth()
    ) {
        AppHeaderBar (
            heightDp,
            backgroundColor,
            leftContent,
            centerContent,
            rightContent,
            leftWeight,
            centerWeight,
            rightWeight,
            dividerVisible
        )
        bottomView()
    }

}